package cn.itcast.hotel.repository;

import cn.itcast.hotel.pojo.HotelSDEDoc;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface HotelRepository extends ElasticsearchRepository<HotelSDEDoc,Long> {
    List<HotelSDEDoc> findByName(String name);

    List<HotelSDEDoc> findByBrand(String brandName);

    List<HotelSDEDoc> findByPriceBetween(double low, double high);

    List<HotelSDEDoc> findByNameAndBrand(String name, String brand);
}
